package ru.urfc.portal.ui.client.model.catalogs;

import ru.urfc.portal.ui.client.Style;
import ru.urfc.portal.ui.client.model.catalogs.booleans.BooleanCatalogItem;

public abstract class InvoiceState extends BooleanCatalogItem {

	static public final InvoiceState BILLED = new InvoiceState(false, "выставлен") {
		@Override
		public String getStyleName(Style style) {
			return style.invoiceBilled();
		}		
	};

	static public final InvoiceState PAID = new InvoiceState(true, "оплачен") {
		@Override
		public String getStyleName(Style style) {
			return style.invoicePaid();
		}
	};

	static public InvoiceState[] values = {BILLED, PAID};

	protected InvoiceState(boolean code, String text) {
		super(code, text);
	}

}
